package controller;

import pojo.User;
import service.UserService;
import view.SelfUserDetails;
import view.SelfUserView;
import view.UserDetails;

import java.awt.event.ActionEvent;
import java.awt.event.ActionListener;

public class SelfUserViewListener implements ActionListener {
    private SelfUserView selfUserView;
    private UserService userService = new UserService();
    private User user;
    public SelfUserViewListener(SelfUserView selfUserView, User user) {
        this.user=user;
        this.selfUserView = selfUserView;
    }

    @Override
    public void actionPerformed(ActionEvent e) {
        if (e.getActionCommand().equals("修改信息")) {
            new SelfUserDetails(user,selfUserView);

        }
    }
}
